Back up Database

You can back up an XCO database after the installation.

About this task

Follow this procedure to back up an XCO database after single-node installation of XCO on TPVM.

Procedure

  1. Connect to the TPVM console or SSH session as an Extreme user.
  2. Log in to XCO using the efa login command.
  3. (Optional) Run the efa system settings update command to configure XCO to backup to a remote server.
    extreme@tpvm:~$ efa login
       Password:
       Login successful.
       --- Time Elapsed: 2.412206025s ---
       (efa:user)@tpvm:~$ efa system settings update --remote-server-ip 10.25.101.74 --remote-transfer-protocol scp --remote-server-username user --remote-server-directory /home/user/
       Please supply a password for remote server:
       Setting Update Successful
       --- Time Elapsed: 4.723485224s ---
  4. If you have configured a remote server, run the efa system backup --remote command to generate a local backup, and then copy the resulting tar.gz file to the configured remote device. Otherwise, run the efa system backup command.

    Backups are stored locally in /var/log/efa/backup/ or /apps/efa_logs/backup/ directory. Backup files are date and time stamped in the file name.

    Note

    Note

    Running the efa system restore command without any arguments will run in an interactive mode, and allow you to pick any backup present in /var/log/efa/backup/ or /apps/efa_logs/backup/ directory.

    For information on additional backup options, see ExtremeCloud Orchestrator Command Reference, 3.6.0 and ExtremeCloud Orchestrator CLI Administration Guide, 3.6.0 .

Example

The following example shows efa system backup command output with backup location:
extreme@tpvm:~$ efa login
Password:
Login successful.
--- Time Elapsed: 2.412206025s ---
(efa:extreme)extreme@tpvm:~$ efa system backup --remote
Generating backup of EFA...

Backup Location: user@10.25.101.74:/home/releaseuser/user/EFA-3.4.0-54-2023-03-28T03-02-13.077.tar
--- Time Elapsed: 20.097407523s ---